<?php

namespace app\common\model\trends;

use think\Db;
use think\Model;


class TrendsComment extends Model
{


    // 表名
    protected $name = 'trends_comment';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];


    public function getStatusList()
    {
        return ['0' => __('Status 0'),'1' => __('Status 1')];
    }


    public function user()
    {
        return $this->belongsTo('app\common\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }


}
